﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="Brushes.xaml"/>
	</ResourceDictionary.MergedDictionaries>
	<Style TargetType="{x:Type ResizeGrip}">
		<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
		<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ResizeGrip}">
					<Grid SnapsToDevicePixels="true" Background="{TemplateBinding Background}">
						<Path HorizontalAlignment="Right" Margin="0,0,2,2" VerticalAlignment="Bottom" Data="M 11,0 L 12,0 L 12,12 L 0,12 L 0,11 z">
							<Path.Fill>
								<DrawingBrush TileMode="Tile" Viewbox="0,0,4,4" ViewboxUnits="Absolute" Viewport="0,0,4,4" ViewportUnits="Absolute">
									<DrawingBrush.Drawing>
										<DrawingGroup>
											<GeometryDrawing Brush="{StaticResource IconBrushLight}" Geometry="M 0,0 L 2,0 L 2,1 L 1,1 L 1,2 L 0,2 z M 2,2 L 3,2 L 3,1 L 4,1 4,3 L 3,3 L 3,4 L 1,4 L 1,3 L 2,3 z"/>
											<GeometryDrawing Brush="{StaticResource IconBrushDark}" Geometry="M 0,3 L 1,3 L 1,4 L 0,4 z M 1,2 L 2,2 L 2,3 L 1,3 z M 2,1 L 3,1 L 3,2 L 2,2 z M 3,0 L 4,0 L 4,1 L 3,1 z "/>
										</DrawingGroup>
									</DrawingBrush.Drawing>
								</DrawingBrush>
							</Path.Fill>
						</Path>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>